<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>我的订单</title>
    <link rel="stylesheet" href="../../static/css/common/adaptor.css">
    <link rel="stylesheet" href="../../static/css/common/common.css">
    <link rel="stylesheet" href="../../static/css/me/orders.css">
</head>
<body>
    <div class="layout">
        <div class="loadingMarsk">
            <div class="loadingPic">
                <div class="rotatePic"><img src="../../static/img/1@3x.png" alt=""></div>
                <div class="centerPic"><img src="../../static/img/2@3x.png" alt=""></div>
            </div>
        </div>
        <div class="header"><span>我的订单</span>
            <div class="backArrow"></div>
        </div>
        <div class="statusList">
            <ul>
                <li><a href="javascript:void(0);" class="statusBtn" style="color:#fff" index=1>全部</a></li>
                <li><a href="javascript:void(0);" class="statusBtn" index=2>待付款</a></li>
                <li><a href="javascript:void(0);" class="statusBtn" index=3>待发货</a></li>
                <li><a href="javascript:void(0);" class="statusBtn" index=4>待收货</a></li>
                <li><a href="javascript:void(0);" class="statusBtn" index=5>待评价</a></li>
            </ul>
            <div class="line"></div>
        </div>
        <div class="orderList">
            <div class="orderListBox">
                <ul class="scrollBox clearfix">
                    <li class="allOrders">
                        <!-- 动态渲染 -->
                    </li>
                    <li class="noPay">
                        <!-- 动态渲染 -->
                    </li>
                    <li class="noSend">
                        <!-- 动态渲染 -->
                    </li>
                    <li class="noCatch">
                        <!-- 动态渲染 -->
                    </li>
                    <li class="noComment">
                        <!-- 动态渲染 -->
                    </li>
                </ul>
            </div>
        </div>
        <div class="like clearfix">
            <div class="likeIcon"></div>
            <div class="likeProduct clearfix">
                <div class="allItemBox clearfix">
                    <!-- 动态渲染 -->
                </div>
                <div class="end"><img src="../../static/img/theend@3x.png" alt=""></div>
            </div>
        </div>
    </div>
    <script type="text/template" id="allItemBox">
        {{each oderList as item index}}
        <div class="orderItem allOrderItem" data-orderId="{{item.orderId}}" data-orderSkuId="{{item.orderSkuId}}" data-status="{{item.status}}">
            <div class="orderStatus clearfix">
                <div class="productSource clearfix">
                    <div class="ico"><img src="{{item.ico}}" alt=""></div>
                    <span class="text">惊喜商城</span>
                </div>
                {{if item.status===0}}
                <div class="status">{{item.tip}}</div>
                {{/if}} {{if item.status===1}}
                <div class="status">已支付</div>
                {{/if}} {{if item.status===2}}
                <div class="status">待发货</div>
                {{/if}} {{if item.status===3}}
                <div class="status">待收货</div>
                {{/if}} {{if item.status===4}}
                <div class="status">待评价</div>
                {{/if}} {{if item.status===5}}
                <div class="status">已完成</div>
                {{/if}} {{if item.status===-1}}
                <div class="status">已取消</div>
                {{/if}}
            </div>
            <div class="orderProductList">
                {{each item.list as pItem index}}
                <div class="productItem clearfix">
                    <div class="pImg">
                        <img src="{{pItem.pic}}" alt="">
                    </div>
                    <div class="pMsg">
                        <div class="productName">{{pItem.productName}}</div>
                        <div class="size">{{pItem.sku}}</div>
                        <div class="monney">￥ {{pItem.price.toFixed(2)}}</div>
                        <div class="dcn clearfix">
                            <span class="diamond">钻石：<span class="orange">{{pItem.diamond.toFixed(2)}}</span></span>
                            <span class="cash">现金：<span class="orange">{{pItem.diamondPrice.toFixed(2)}}</span></span>
                        </div>
                        <span class="productNum">x{{pItem.count}}</span>
                    </div>
                </div>
                {{/each}}
            </div>
            <div class="itemTotal">
                <div class="topText">共计{{item.totalCount}}件商品，合计：￥ {{item.orderPrice.toFixed(2)}}</div>
                <div class="bottomText">({{item.payInfo}})</div>
            </div>
            {{if item.status===0}}
            <div class="payBtn">
                <div class="goPayBtn">去支付</div>
                <div class="cancelBtn">取消订单</div>
            </div>
            {{/if}}
        </div>
        {{/each}} {{if oderList.length===0}}
        <div class="emptyOrder">
            <div class="orderIcon"></div>
            <div class="orderText">
                <div class="big">您还没有相关的订单</div>
                <div class="small">可以看看还有哪些想买的</div>
            </div>
        </div>
        {{/if}}
    </script>
    <script type="text/template" id="itemBox">
        {{each productList as item index}}
        <div class="likeProductItem" data-id={{item.id}}>
            <div class="likeProductPic">
                <img src="{{item.midPic}}" alt="">
            </div>
            <div class="likeProductMsg">
                <div class="likeBrandName">{{item.brandName}}</div>
                <div class="likeProductName">{{item.productName}}</div>
                <div class="likePrice">￥ {{item.price}}</div>
            </div>
        </div>
        {{/each}}
    </script>
    <script src="../../static/assets/jquery/jquery.min.js"></script>
    <script src="../../static/assets/fastclick/fastclick.js"></script>
    <script src="../../static/assets/art-template/template.js"></script>
    <script src="../../static/assets/pullmaster/pull.min.js"></script>
    <script src="../../static/js/config/config.js"></script>
    <script src="../../static/js/config/tools.js"></script>
    <script src="../../static/js/me/orders.js"></script>
</body>
</html>